package org.ajida.linux.util.struct;

public class TopInfo {

	/**
	 * 系统时间 HH:mm:ss
	 */
	private String systemTime;
	
	/**
	 * 系统运行时长
	 */
	private String runningTime;
	
	/**
	 * 当前登录用户数
	 */
	private int onlineUsers;
	
	/**
	 * 1分钟内平均负载
	 */
	private double loadAverageOneMin;
	
	/**
	 * 5分钟内平均负载
	 */
	private double loadAverageFiveMin;
	
	/**
	 * 15分钟内平均负载
	 */
	private double loadAverageFifteenMin;
	
	/**
	 * 总进程数
	 */
	private int totalTasks;
	
	/**
	 * 正在运行的进程数
	 */
	private int runningTaks;
	
	/**
	 * 睡眠的进程数
	 */
	private int sleepingTasks;
	
	/**
	 * 停止的进程数
	 */
	private int stoppedTasks;
	
	/**
	 * 用户空间占用CPU百分比
	 */
	private double cpuUsRate;
	
	/**
	 * 内核空间占用CPU百分比
	 */
	private double cpuSysRate;
	
	/**
	 * 改变过优先级的进程占用CPU的百分比
	 */
	private double cpuNiRate;
	
	/**
	 * 空闲CPU百分比
	 */
	private double cpuIdRate;
	
	/**
	 * 内存总量=free+used+buff
	 */
	private long totalMemory;
	
	/**
	 * 空闲内存总量
	 */
	private long freeMemory;
	
	/**
	 * 使用掉的内存总量
	 */
	private long usedMemory;
	
	/**
	 * 用作缓存交换的内存总量
	 */
	private long buffMemory;

	/**
	 * 可用内存总量
	 */
	private long availableMemory;
	/**
	 * 内存使用占比=（total-available）*100/total
	 */
	private double memoryUsedRate;
	public String getSystemTime() {
		return systemTime;
	}
	public void setSystemTime(String systemTime) {
		this.systemTime = systemTime;
	}
	public String getRunningTime() {
		return runningTime;
	}
	public void setRunningTime(String runningTime) {
		this.runningTime = runningTime;
	}
	public int getOnlineUsers() {
		return onlineUsers;
	}
	public void setOnlineUsers(int onlineUsers) {
		this.onlineUsers = onlineUsers;
	}
	public double getLoadAverageOneMin() {
		return loadAverageOneMin;
	}
	public void setLoadAverageOneMin(double loadAverageOneMin) {
		this.loadAverageOneMin = loadAverageOneMin;
	}
	public double getLoadAverageFiveMin() {
		return loadAverageFiveMin;
	}
	public void setLoadAverageFiveMin(double loadAverageFiveMin) {
		this.loadAverageFiveMin = loadAverageFiveMin;
	}
	public double getLoadAverageFifteenMin() {
		return loadAverageFifteenMin;
	}
	public void setLoadAverageFifteenMin(double loadAverageFifteenMin) {
		this.loadAverageFifteenMin = loadAverageFifteenMin;
	}
	public int getTotalTasks() {
		return totalTasks;
	}
	public void setTotalTasks(int totalTasks) {
		this.totalTasks = totalTasks;
	}
	public int getRunningTaks() {
		return runningTaks;
	}
	public void setRunningTaks(int runningTaks) {
		this.runningTaks = runningTaks;
	}
	public int getSleepingTasks() {
		return sleepingTasks;
	}
	public void setSleepingTasks(int sleepingTasks) {
		this.sleepingTasks = sleepingTasks;
	}
	public int getStoppedTasks() {
		return stoppedTasks;
	}
	public void setStoppedTasks(int stoppedTasks) {
		this.stoppedTasks = stoppedTasks;
	}
	public double getCpuUsRate() {
		return cpuUsRate;
	}
	public void setCpuUsRate(double cpuUsRate) {
		this.cpuUsRate = cpuUsRate;
	}
	public double getCpuSysRate() {
		return cpuSysRate;
	}
	public void setCpuSysRate(double cpuSysRate) {
		this.cpuSysRate = cpuSysRate;
	}
	public double getCpuNiRate() {
		return cpuNiRate;
	}
	public void setCpuNiRate(double cpuNiRate) {
		this.cpuNiRate = cpuNiRate;
	}
	public double getCpuIdRate() {
		return cpuIdRate;
	}
	public void setCpuIdRate(double cpuIdRate) {
		this.cpuIdRate = cpuIdRate;
	}
	public long getTotalMemory() {
		return totalMemory;
	}
	public void setTotalMemory(long totalMemory) {
		this.totalMemory = totalMemory;
	}
	public long getFreeMemory() {
		return freeMemory;
	}
	public void setFreeMemory(long freeMemory) {
		this.freeMemory = freeMemory;
	}
	public long getUsedMemory() {
		return usedMemory;
	}
	public void setUsedMemory(long usedMemory) {
		this.usedMemory = usedMemory;
	}
	public long getBuffMemory() {
		return buffMemory;
	}
	public void setBuffMemory(long buffMemory) {
		this.buffMemory = buffMemory;
	}
	public long getAvailableMemory() {
		return availableMemory;
	}
	public void setAvailableMemory(long availableMemory) {
		this.availableMemory = availableMemory;
	}
	public double getMemoryUsedRate() {
		return memoryUsedRate;
	}
	public void setMemoryUsedRate(double memoryUsedRate) {
		this.memoryUsedRate = memoryUsedRate;
	}
	
}
